<template>
    <div>
        <p>{{goodsDesc.title}}</p>
        <hr>
        <div v-html="goodsDesc.content" class="desc"></div>
    </div>
</template>
<script>
export default {
    data () {
        return {
            id: this.$route.params.id,
            goodsDesc: {},
        }
    },
    created(){
        this.getGoodsDesc()
    },
    methods: {
        getGoodsDesc(){
            this.$http.get('api/goods/getdesc/'+ this.id).then(result => {
                if (result.body.status == 0) {
                    this.goodsDesc = result.body.message[0]
                }
            })
        }
    },
}
</script>
<style lang="less" scoped>

</style>
